package com.sft360.kb.drawview;

import android.content.Context;
import android.graphics.*;
import android.util.AttributeSet;
import android.view.View;

public class TvIvView extends View {
    public TvIvView(Context context) {
        super(context);
    }

    public TvIvView(Context context,AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        Paint p = new Paint();
        p.setColor(Color.RED);

        canvas.drawText("自定义",500,600,p);

        Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.monikaoshi);
        canvas.drawBitmap(bitmap,500,630,p);
    }
}
